<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<include file="Admin:head" />

		<body>
			<include file="Admin:top" />
				<div class="container-fluid">
					<div class="row">
						<include file="Admin:leftmenu" />
						<div class="col-md-10">

							<script type="text/javascript">
								$(document).ready(function() {
									$(".preview").preview();
								});
							</script>

							<ol class="breadcrumb">
								<li>
									<a href="<{:U('Admin/user_list')}>">题目管理</a>
								</li>
								<li>
									<a href="<{:U('Admin/user_list')}>">题目列表</a>
								</li>
								<li class="active">添加新题目</li>
							</ol>

							<form action="<{:U('Admin/user_add_do')}>" method="post" class="form-horizontal form-validata" enctype="multipart/form-data">
								<div class="form-group">
									<label class="col-md-1 control-label" for="title">题目名称</label>
									<div class="col-md-2">
										<input type="text" class="form-control" name="title" id="title" value="<{$info.nick}>" />
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-md-1 control-label" for="description">题目描述</label>
									<div class="col-md-11">
										<textarea id="description" name="description" type="text/plain" style="width: 100%;height: 200px;"></textarea>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-md-1 control-label" for="input">输入描述</label>
									<div class="col-md-11">
										
										<textarea id="input" name="input" type="text/plain" style="width: 100%;height: 50px;"></textarea>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-md-1 control-label" for="output">输出描述</label>
									<div class="col-md-11">
										<textarea id="output" name="output" type="text/plain" style="width: 100%;height: 50px;"></textarea>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-md-1 control-label" for="sample_input">样例输入</label>
									<div class="col-md-11">
										<textarea id="sample_input" name="sample_input" type="text/plain" style="width: 100%;height: 50px;"></textarea>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-md-1 control-label" for="sample_output">样例输出</label>
									<div class="col-md-11">
										<textarea id="sample_output" name="sample_output" type="text/plain" style="width: 100%;height: 50px;"></textarea>
									</div>
								</div>

								<div class="form-group">
									<label class="col-md-1 control-label" for="hint">提示</label>
									<div class="col-md-11">
										<input type="text" class="form-control" name="hint" id="hint" value="<{$info.hint}>" />
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-md-1 control-label" for="source">题目来源</label>
									<div class="col-md-2">
										<input type="text" class="form-control" name="source" id="source" value="<{$info.source}>" />
									</div>
									<label class="col-md-1 control-label" for="time_limit">时间限制</label>
									<div class="col-md-2">
										<input type="text" class="form-control" name="time_limit" id="time_limit" value="<{$info.time_limit}>" />
									</div>
									<label class="col-md-1 control-label" for="memory_limit">内存限制</label>
									<div class="col-md-2">
										<input type="text" class="form-control" name="memory_limit" id="memory_limit" value="<{$info.time_limit}>" />
									</div>
								</div>
								
								<div class="form-group">
									<div class="col-md-11 col-sm-offset-1">
										<input type="submit" class="btn btn-info" value="添加" />
									</div>
								</div>
							</form>

							<script type="text/javascript">
								$("#path").val("");
							</script>

							<input type="hidden" id="menu_action" value="problem" />
						</div>
					</div>

				</div>

				<include file="Admin:menu_action" />
		<!--Ueditor-->
		<script type="text/javascript" src="__PUBLIC__/source/Ueditor/ueditor.config.js"></script>
		<script type="text/javascript" src="__PUBLIC__/source/Ueditor/ueditor.all.js"></script>
		<script type="text/javascript">
			var description = UE.getEditor('description');
			var input = UE.getEditor('input');
			var output = UE.getEditor('output');
			var sample_input = UE.getEditor('sample_input');
			var sample_output = UE.getEditor('sample_output');
		</script>
		<!--Ueditor-->
		</body>

</html>